package cn.myspringboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * Hello world!
 *
 */
@SpringBootApplication
//扫描Mapper接口的包下所有的Mapper接口，生成这些接口的代理对象，供业务Service注入使用
@MapperScan("cn.myspringboot.**.mapper")
@ServletComponentScan(value = {"cn.myspringboot.anno"})
public class App 
{
    public static void main( String[] args )
    {
//        System.out.println( "Hello World!" );
        SpringApplication.run(App.class, args);
    }
}
